/*
 * This class make objects of Word and put them in a list, so 
 * every game can get a list of all word that are in use. 
 */
package cth.tda367.beavers.glossaryGame.model;

import java.util.List;
import java.util.ArrayList;

public class WordList implements IWordList{
	

	List<Word> wordList = new ArrayList<Word>();

	@Override
	public void addNewWord(Word a) {
		wordList.add(a);

		
	} 
	
	@Override
	public int getSize() {
		return wordList.size();
	}
	@Override
	public Word getWord(int i) {
		return (Word)wordList.get(i);
	}
	@Override
	public void removeWord (int i) {
		wordList.remove(i);
	}
	public List <Word> getWordList() {
		return wordList;
	}

}
